//
// Created by PC on 2017/11/17.
//

#ifndef INVERSIONNUMBER_SORTTESTHELPER_H_H
#define INVERSIONNUMBER_SORTTESTHELPER_H_H
#include <iostream>
#include <algorithm>
#include <string>
#include <ctime>
#include <cassert>

using namespace std;


namespace SortTestHelper {

    int *generateRandomArray(int n, int range_l, int range_r) {

        int *arr = new int[n];

        srand(time(NULL));
        for (int i = 0; i < n; i++)
            arr[i] = rand() % (range_r - range_l + 1) + range_l;
        return arr;
    }

};
#endif //INVERSIONNUMBER_SORTTESTHELPER_H_H
